import request from '@/utils/request'

// 查询工作项依赖列表
export function listWorkDependency(query) {
  return request({
    url: '/project/workDependency/list',
    method: 'get',
    params: query
  })
}

// 查询工作项依赖详细
export function getWorkDependency(dependencyId) {
  return request({
    url: '/project/workDependency/' + dependencyId,
    method: 'get'
  })
}

// 新增工作项依赖
export function addWorkDependency(data) {
  return request({
    url: '/project/workDependency',
    method: 'post',
    data: data
  })
}

// 修改工作项依赖
export function updateWorkDependency(data) {
  return request({
    url: '/project/workDependency',
    method: 'put',
    data: data
  })
}

// 删除工作项依赖
export function delWorkDependency(dependencyId) {
  return request({
    url: '/project/workDependency/' + dependencyId,
    method: 'delete'
  })
}
